package com.itrident.action;

import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataKey;
import com.intellij.openapi.project.Project;
import com.intellij.ui.FieldPanel;
import com.itrident.dialog.CodeDialog;
import com.itrident.dialog.DemoWizard;
import com.itrident.dialog.Dere;

import javax.swing.*;

public class DemoAction extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        Project project = e.getRequiredData (CommonDataKeys.PROJECT);
        CodeDialog codeDialog = new CodeDialog (project);
        codeDialog.showAndGet ();


//        DemoWizard demoWizard = new DemoWizard ("demo",project);
//        FieldPanel fieldPanel = ModuleWizardStep.createFieldPanel ();
//        demoWizard.addStep ();
//        demoWizard.showAndGet ();
    }
}
